using System;
using System.Collections.Generic;
using System.Text;

namespace MediaWikiEngine.Language
{
    /// <summary>
    /// The default language being used on the wiki.  The default language is English (en-us).
    /// </summary>
    public class DefaultLanguage : ILanguage
    {
        Dictionary<string, string> _namespaces = new Dictionary<string, string>();

        /// <summary>
        /// Gets a mapping of default (English) names of namespaces to their local equivalents.
        /// </summary>
        public Dictionary<string, string> Namespaces { get { return _namespaces; } }

        public DefaultLanguage()
        {
            PopulateNamespaces();
        }

        private void PopulateNamespaces()
        {
            _namespaces.Add("Special", "Special");
            _namespaces.Add("Main", "");
            _namespaces.Add("Main_talk", "Talk");
            _namespaces.Add("User", "User");
            _namespaces.Add("User_talk", "User_talk");
            _namespaces.Add("Template", "Template");
            _namespaces.Add("Template_talk", "Template_talk");
            _namespaces.Add("MediaWiki", "MediaWiki");
            _namespaces.Add("Category", "Category");
            _namespaces.Add("Portal", "Portal");
        }

    }
}
